﻿using DataAccess;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

namespace KhoaLuan.MainSys.Manager.Org
{
    public partial class AddNewOrg : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            show_TypeOrg();
        }
        tbOrgType_Proxy pr = new tbOrgType_Proxy();

        void show_TypeOrg()
        {
            List<tbOrgType> dt = new List<tbOrgType>();
            dt = pr.SelectAlltbOrgType_Proxy();
            this.drTypeOrg.DataSource = dt;
            this.drTypeOrg.DataTextField = "NameTypeOrg";
            this.drTypeOrg.DataValueField = "TypeOrgID";
            this.drTypeOrg.DataBind();
            dt.Clear();
            dt = null;
        }   

    }
}